ABOUTDEVELOPERS |
SpatialStream® Code Examples
Adding Layers
This example demonstrates how to simply add layers to a map using a Map Layer object. The map layer uses the GetMap functional component to construct web requests and retrieve images, in this case Neighborhood Boundaries, to display on the map.
GetMap
var layer = new Dmp.Layer.WmsLayer("neighborhoodLayer", "SS");
layer.addChild("neighborhoodResource", "ACCOUNT_FOLDER/Neighborhoods", ""); layer.setMap(map); Run Sample View Video Back To Index |